<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/layouts/default.xhtml">
    <ui:define name="title">#{text['anneeScolaireDetail.title']}</ui:define>
    <ui:param name="menu" value="AdminMenu"/>
    <ui:param name="menuleft" value="AdminAnneeScolaireFormFormMenu"/>

    <ui:define name="body">

        <div class="col-lg-9">
	        <div class="page-header">
				<h3>#{text['anneeScolaireDetail.heading']}</h3>
			</div>
	        <h:form id="anneeScolaireForm" styleClass="well">
		        <div class="form-group">
		   			<h:inputHidden value="#{anneeScolaireForm.anneeScolaire.id}" id="id"/>
		        </div>
		        
		        <div class="row">
					<div class="col-sm-4 form-group col-md-offset-4">
	           			<h:outputLabel styleClass="control-label" for="anneeScolaire" value="#{text['anneeScolaire.anneeScolaire']}"/>
	       				<h:inputText id="anneeScolaire" value="#{anneeScolaireForm.anneeScolaire.anneeScolaire}" styleClass="form-control" required="true" maxlength="255"/>
	            		<p:message for="anneeScolaire"/>
	            	</div>
		        </div>
		        
		        <div class="row">
					<div class="col-sm-3 form-group col-md-offset-4">
		            	<h:outputLabel styleClass="control-label" for="fraisInscription" value="#{text['anneeScolaire.fraisInscription']}"/>
		        		<h:inputText id="fraisInscription" validatorMessage="#{text['errors.min']}"  value="#{anneeScolaireForm.anneeScolaire.fraisInscription}" styleClass="form-control" required="false" maxlength="255">
		        			<f:validateDoubleRange minimum="1.0"/>
		        		</h:inputText>
		            	<p:message for="fraisInscription"/>
		            </div>
		        </div>
		        
	            <div class="btn-group col-md-offset-5">
	                <h:commandButton value="#{text['button.save']}" action="#{anneeScolaireForm.save}"
	                    id="save" styleClass="btn btn-primary"/>
	
	                <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
	                    id="cancel" styleClass="btn btn-default"/>
	            </div>
	        </h:form>
        </div>
    </ui:define>
</ui:composition>
</html>
